package com.suntoon.framework.common;

/**
 * @Author: LEAVES
 * @Version 1.0
 * @Date: 2021年06月21日 15时33分40秒
 * @Description: 常量类
 */
public class Constants {

    /**
     * token秘钥
     */
    public static final String TOKEN_SECRET = "MDk4ZjZiY2Q0NjIxZDM3M2NhZGU0ZTgzMjYyN2I0ZjY=";

    /**
     * token过期时间
     */
    public static final long TOKEN_EXPIRE_TIME = 86400;

    public static final Boolean TOKEN_ACTIVITY = true;

    /**
     * token存放的请求头
     */
    public static final String AUTHORIZATION = "Authorization";

    /**
     * token前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 成功返回代码
     */
    public static final int SUCCESS_CODE = 100;
    /**
     * 成功返回消息
     */
    public static final String SUCCESS_MSG = "The request for the back-end interface was successful.";
    /**
     * 失败返回代码
     */
    public static final int FAIL_CODE = 101;
    /**
     * 失败返回消息
     */
    public static final String FAIL_MSG = "An error has occurred in the back-end interface.";

}
